package com.example.qianjun.gobang01;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;


import com.example.qianjun.gobang01.bean.Constant;

public class MainActivity extends AppCompatActivity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    //人人对战
    public void StartPeoplePKPeople(View view) {
        Intent intent = new Intent(MainActivity.this,GobangActivity.class);
        intent.putExtra("chessMode", Constant.HUMAN_PK_HUMAN);
        startActivity(intent);
    }

    //人机对战
    public void StartPeoplePKRobot(View view) {
        Intent intent = new Intent(MainActivity.this,GobangActivity.class);
        intent.putExtra("chessMode", Constant.HUMAN_PK_ROBOT);
        startActivity(intent);
    }



    public void configPanel(View view) {
        Intent intent = new Intent(MainActivity.this,SettingPanelActivity.class);
        startActivity(intent);
    }
}
